package cn.itlight.feign;

import cn.itlight.basic.resultBase;
import cn.itlight.domain.Store;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@org.springframework.cloud.openfeign.FeignClient(value = "store-server")
public interface FeignClient {

    @PostMapping("/add")
    @HystrixCommand(fallbackMethod = "fallbackMethod")
    resultBase add(@RequestBody Store store);
}
